<template>
    <div>
        <h1>count: {{count}}</h1>
        <button @click="add">+1</button>
    </div>
</template>
<script>
import { ref } from 'vue'
export default {
    name: 'App',
    setup() {
        const count = ref(6)
        function add() {
            count.value ++
        } 
        return {count,add}
    }
}
</script>